package com.firwood.service;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringDemoTest {
	
	@Test
	public void test00(){
		BookService bookService = new BookServiceImpl();
		bookService.save();
	}
	
	
	@Test
	public void test01(){
		String xml = "com/firwood/service/beans.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xml);
		BookService bookService = (BookService) applicationContext.getBean("BookServiceImplId");
		bookService.save();
	}
}
